<?php
class Excption2{
    public function make(int $len){
        return $this->code($len);
    }

    protected function code(int $len){
        if($len > 5){
            throw new Exception('验证码的长度过长');
        }
        return '123456';
    }
}
